//
//  PrintFamilyAppGlobalDefines.h
//  PrintFamily
//
//  Created by edaihua on 16/2/28.
//  Copyright © 2016年 ___PrintFactory___. All rights reserved.
//

#ifndef PrintFamilyAppGlobalDefines_h
#define PrintFamilyAppGlobalDefines_h

typedef NS_ENUM(NSUInteger, PhotoPrintType) {
    PhotoType_Square_Mini,
    PhotoType_Square,
    PhotoType_Rectangle_Mini,
    PhotoType_Rectangle_Medium,
    PhotoType_Rectangle_Large,
    PhotoType_Rectangle_Last
};

typedef NS_ENUM(NSUInteger, PhotoBoarder) {
    PhotoBoarder_None,
    PhotoBoarder_White
};

typedef NS_ENUM(NSUInteger, OrderStatus) {
    OrderStatus_Selected,
    OrderStatus_Uploaded,
    OrderStatus_Payed,
    OrderStatus_Delivering,
    OrderStatus_Finished
};

typedef NS_ENUM(NSUInteger, SubOrderStatus) {
    SubOrderStatus_Selected,
    SubOrderStatus_Uploaded
};

#define PFPhotoSquareHeightToWidth (1.0)

#define PFPhotoDefaultPrintType PhotoType_Rectangle_Medium

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0x00FF00) >>  8))/255.0 \
blue:((float)((rgbValue & 0x0000FF) >>  0))/255.0 \
alpha:1.0]

#define UIColorBlue UIColorFromRGB(0x00ADEE)

#endif /* PrintFamilyAppGlobalDefines_h */
